package com.example.user

import com.example.lib_base.entity.User
import com.example.lib_base.room.UserDao
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

class UserRepo @Inject constructor(private val userDao: UserDao) {
    fun register(user: User): Flow<Long> {
        return flow { emit(userDao.register(user)) }
    }
}